#!/usr/bin/env python

import ConfigParser
import os
import sys
import subprocess
import shutil
import collections


class SetupConfig:
    def __init__(self, config_file):
        self.config_file = config_file

    def config_setup(self):
        tests = collections.defaultdict(dict)
        config = ConfigParser.ConfigParser()
        x = config.read(self.config_file)
        sections = config.sections()
        for section in sections:
            options = config.options(section)
            #print "Section: " + section
            for option in options:
                print "Section: " + section + " Option: " + option
#        tests = collections.defaultdict(dict)
#        for test in tests:
#            print test


'''
class Flowtime:
    def __init__(self, capreader_path, pcap, conn):
        self.capreader_path = capreader_path
        self.pcap = pcap
        self.conn = conn
        self.flowtool = "/root/qasvn/scripts2/NAVL/flowtime/flowtool_timed/flowtool"

    def build_cmd(self):
        cmd = self.flowtool + "-P"
        cmd += "-D" + self.capreader_path
        cmd += "-V" + self.pcap
        cmd += " grep 'Conn: '" + self.conn

    def run_flowtool(self, cmd):
        with open()
        subprocess.call(cmd, shell=True)
'''

if __name__ == "__main__":
    config = SetupConfig(sys.argv[1])
    config.config_setup()